<?php

class GoodsAgentRelatedSearch extends SearchBase{

	public function getCriteria() {
		$criteria = $this->criteria;
		$criteria->with = 'goods';
		$criteria->compare('goods.title',$this->model->goods_name,true);
		return $criteria;
	}
}

?>